.class public Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;
.super Landroid/app/Activity;
.source "BurstlyFullscreenActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;,
        Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;
    }
.end annotation


# static fields
.field public static final BLOCK_BACK_BUTTON:Ljava/lang/String; = "blockBackButton"

.field private static final DECORATORS:Ljava/util/Map; = null
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;",
            ">;"
        }
    .end annotation
.end field

.field private static final DEFAULT_BACK_BUTTON_BLOCKING_INTERVAL:I = 0xfa0

.field public static final IMPLEMENTATION_ID_KEY:Ljava/lang/String; = "imlementationIdKey"

.field public static final NETWORK_NAME:Ljava/lang/String; = "networkName"

.field private static final TAG:Ljava/lang/String; = "BurstlyFullscreenActivity"

.field public static sActiveActivity:Ljava/lang/ref/Reference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/Reference",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private static volatile sBackButtonEnabled:Z

.field private static sLog:Lcom/burstly/lib/util/LoggerExt;


# instance fields
.field private mActivityViewRoot:Landroid/view/View;

.field private mBackBtnBlocker:Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;

.field private mBackButtonBlockTime:J

.field private mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 73
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->DECORATORS:Ljava/util/Map;

    .line 78
    const/4 v0, 0x1

    sput-boolean v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sBackButtonEnabled:Z

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 43
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 136
    return-void
.end method

.method public static addDecorator(Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    .locals 1
    .parameter "networkName"
    .parameter "decorator"

    .prologue
    .line 396
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->DECORATORS:Ljava/util/Map;

    invoke-interface {v0, p0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;

    return-object v0
.end method

.method private decorate(Ljava/lang/String;)V
    .locals 7
    .parameter "networkName"

    .prologue
    const/4 v6, 0x0

    .line 229
    if-eqz p1, :cond_1

    .line 230
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->getDecoratorSafe(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;

    move-result-object v0

    .line 231
    .local v0, decor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    if-eqz v0, :cond_0

    .line 232
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    .line 233
    .local v1, originalRoot:Landroid/view/View;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    invoke-interface {v0, v2, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;->decorate(Landroid/view/View;Landroid/app/Activity;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    .line 234
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    if-nez v2, :cond_0

    .line 235
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "BurstlyFullscreenActivity"

    const-string v4, "Decorator for {0} returned null after decoration. Original view root will be used."

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    aput-object p1, v5, v6

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 239
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    .line 245
    .end local v0           #decor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    .end local v1           #originalRoot:Landroid/view/View;
    :cond_0
    :goto_0
    return-void

    .line 243
    :cond_1
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "BurstlyFullscreenActivity"

    const-string v4, "No network name in intent."

    new-array v5, v6, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public static getDecorator(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    .locals 1
    .parameter "networkName"

    .prologue
    .line 417
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->DECORATORS:Ljava/util/Map;

    invoke-interface {v0, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;

    return-object v0
.end method

.method private getDecoratorSafe(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    .locals 3
    .parameter "networkName"

    .prologue
    .line 254
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->getDecorator(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;

    move-result-object v0

    .line 255
    .local v0, decor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    if-nez v0, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->showDefaultCloseButton()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 256
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/DefaultInterstitialDecorator;

    .end local v0           #decor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    iget-wide v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackButtonBlockTime:J

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/DefaultInterstitialDecorator;-><init>(J)V

    .line 258
    .restart local v0       #decor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    :cond_0
    return-object v0
.end method

.method private static getImplementation(Ljava/lang/Integer;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;
    .locals 2
    .parameter "implementationId"

    .prologue
    .line 281
    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 282
    .local v0, implId:I
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;->IMPLEMENTATION_ID:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_0

    .line 283
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;

    invoke-direct {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageFullscreen;-><init>()V

    .line 287
    :goto_0
    return-object v1

    .line 284
    :cond_0
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->IMPLEMENTATION_ID:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_1

    .line 285
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    invoke-direct {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;-><init>()V

    goto :goto_0

    .line 287
    :cond_1
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private handledByFullscreen(ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 330
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v0, p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->onKey(Landroid/app/Activity;ILandroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static isBackButtonEnabled()Z
    .locals 1

    .prologue
    .line 305
    sget-boolean v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sBackButtonEnabled:Z

    return v0
.end method

.method public static removeDecorator(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;
    .locals 1
    .parameter "networkName"

    .prologue
    .line 407
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->DECORATORS:Ljava/util/Map;

    invoke-interface {v0, p0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IDecorator;

    return-object v0
.end method

.method public static setBackButtonEnabled(Z)V
    .locals 0
    .parameter "enabled"

    .prologue
    .line 296
    sput-boolean p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sBackButtonEnabled:Z

    .line 297
    return-void
.end method

.method private setContentView(Landroid/view/ViewGroup$LayoutParams;)V
    .locals 1
    .parameter "rootLayoutParams"

    .prologue
    .line 267
    if-nez p1, :cond_0

    .line 268
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->setContentView(Landroid/view/View;)V

    .line 272
    :goto_0
    return-void

    .line 270
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    invoke-virtual {p0, v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method private suppressBackKey(I)Z
    .locals 5
    .parameter "keyCode"

    .prologue
    const/4 v1, 0x0

    .line 340
    const/4 v2, 0x4

    if-ne p1, v2, :cond_0

    sget-boolean v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sBackButtonEnabled:Z

    if-eqz v2, :cond_1

    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackBtnBlocker:Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackBtnBlocker:Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;

    invoke-virtual {v2, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;->blocked(I)Z

    move-result v2

    if-eqz v2, :cond_3

    :cond_1
    const/4 v0, 0x1

    .line 342
    .local v0, supressed:Z
    :goto_0
    if-eqz v0, :cond_2

    .line 343
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "BurstlyFullscreenActivity"

    const-string v4, "Back button suppressed."

    new-array v1, v1, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v1}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 345
    :cond_2
    return v0

    .end local v0           #supressed:Z
    :cond_3
    move v0, v1

    .line 340
    goto :goto_0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9
    .parameter "savedInstanceState"

    .prologue
    const/high16 v6, 0x100

    const/16 v5, 0x200

    const/4 v8, 0x0

    .line 181
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4, v5, v5}, Landroid/view/Window;->setFlags(II)V

    .line 183
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 184
    new-instance v4, Ljava/lang/ref/WeakReference;

    invoke-direct {v4, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    sput-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sActiveActivity:Ljava/lang/ref/Reference;

    .line 186
    invoke-static {p0}, Lcom/burstly/lib/BurstlySdk;->init(Landroid/content/Context;)V

    .line 187
    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    if-nez v4, :cond_0

    .line 188
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v4

    sput-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    .line 190
    :cond_0
    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0xb

    if-lt v4, v5, :cond_1

    .line 191
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4, v6, v6}, Landroid/view/Window;->setFlags(II)V

    .line 194
    :cond_1
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 195
    .local v1, intent:Landroid/content/Intent;
    if-nez v1, :cond_2

    .line 196
    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "BurstlyFullscreenActivity"

    const-string v6, "Current intent is null. Exiting..."

    new-array v7, v8, [Ljava/lang/Object;

    invoke-virtual {v4, v5, v6, v7}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 197
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->finish()V

    .line 221
    :goto_0
    return-void

    .line 201
    :cond_2
    const-string v4, "blockBackButton"

    const/16 v5, 0xfa0

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v4

    int-to-long v4, v4

    iput-wide v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackButtonBlockTime:J

    .line 202
    iget-wide v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackButtonBlockTime:J

    const-wide/16 v6, 0x0

    cmp-long v4, v4, v6

    if-gez v4, :cond_3

    const-wide/16 v4, 0xfa0

    :goto_1
    iput-wide v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackButtonBlockTime:J

    .line 203
    new-instance v4, Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;

    iget-wide v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackButtonBlockTime:J

    invoke-direct {v4, v5, v6}, Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;-><init>(J)V

    iput-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackBtnBlocker:Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;

    .line 204
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackBtnBlocker:Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/BackButtonBlocker;->startBlocking()V

    .line 205
    const-string v4, "networkName"

    invoke-virtual {v1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 206
    .local v2, networkName:Ljava/lang/String;
    const-string v4, "imlementationIdKey"

    const/4 v5, -0x1

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    .line 207
    .local v0, implementationId:Ljava/lang/Integer;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->getImplementation(Ljava/lang/Integer;)Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    move-result-object v4

    iput-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    .line 208
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    if-nez v4, :cond_4

    .line 209
    sget-object v4, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sLog:Lcom/burstly/lib/util/LoggerExt;

    const-string v5, "BurstlyFullscreenActivity"

    const-string v6, "Unsupported implementation id: {0}"

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/Object;

    aput-object v0, v7, v8

    invoke-virtual {v4, v5, v6, v7}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 210
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->finish()V

    goto :goto_0

    .line 202
    .end local v0           #implementationId:Ljava/lang/Integer;
    .end local v2           #networkName:Ljava/lang/String;
    :cond_3
    iget-wide v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mBackButtonBlockTime:J

    goto :goto_1

    .line 212
    .restart local v0       #implementationId:Ljava/lang/Integer;
    .restart local v2       #networkName:Ljava/lang/String;
    :cond_4
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->getAttachParameters()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 213
    .local v3, rootLayoutParams:Landroid/view/ViewGroup$LayoutParams;
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v4, p1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->onCreate(Landroid/os/Bundle;Landroid/app/Activity;)Landroid/view/View;

    move-result-object v4

    iput-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    .line 214
    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mActivityViewRoot:Landroid/view/View;

    if-nez v4, :cond_5

    .line 215
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->finish()V

    goto :goto_0

    .line 217
    :cond_5
    invoke-direct {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->decorate(Ljava/lang/String;)V

    .line 218
    invoke-direct {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->setContentView(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 366
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    if-eqz v0, :cond_0

    .line 367
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->onDestroy(Landroid/app/Activity;)V

    .line 369
    :cond_0
    const/4 v0, 0x0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sActiveActivity:Ljava/lang/ref/Reference;

    .line 370
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 371
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 4
    .parameter "keyCode"
    .parameter "event"

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 318
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->suppressBackKey(I)Z

    move-result v3

    if-nez v3, :cond_0

    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->handledByFullscreen(ILandroid/view/KeyEvent;)Z

    move-result v3

    if-eqz v3, :cond_3

    :cond_0
    move v0, v2

    .line 319
    .local v0, handledInternally:Z
    :goto_0
    if-nez v0, :cond_1

    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v3

    if-eqz v3, :cond_2

    :cond_1
    move v1, v2

    :cond_2
    return v1

    .end local v0           #handledInternally:Z
    :cond_3
    move v0, v1

    .line 318
    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 310
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    if-eqz v0, :cond_0

    .line 311
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->onPause(Landroid/app/Activity;)V

    .line 313
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 314
    return-void
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 358
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    if-eqz v0, :cond_0

    .line 359
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->onResume(Landroid/app/Activity;)V

    .line 361
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 362
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "event"

    .prologue
    .line 350
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->mFullscreenView:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;

    invoke-interface {v0, p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;->onTouchEvent(Landroid/app/Activity;Landroid/view/MotionEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 351
    const/4 v0, 0x1

    .line 353
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_0
.end method
